import axios from "axios";

//使用axios.create()创建一个axios实例，该实例与axios几乎一致
export const host = process.env.NODE_ENV==='development' ?'http://120.76.247.5:2003' :'http://www.laoxie.xyz'
const request = axios.create({
  baseURL: host+'/api',
  // timeout: 1000,
  // headers: {'X-Custom-Header': 'foobar'}
});

export default request